package com.spring.mvc.controller;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 28593
 * @auther 尚智江
 * @Date 2022/10/13 10:55
 */
@Controller
public class FirstController {
    @RequestMapping("/first")
    public String first(){
        // String返回值，默认是视图的名字（视图解析器的前缀+此处字符串+视图解析器的后缀）
        System.out.println("-------------");
        return "success";
    }
    @RequestMapping("/gs")
    public String gs(){
        return "inputb";
    }
    @RequestMapping("/gs1")
    public String gs1(){
        return "input";
    }
    @RequestMapping("/json")
    public String json(){
        return "index";
    }
    @RequestMapping("/eex")
        public String eex(){
            return "ex";
        }

}
